﻿using CoreEx.Services;
using LinFu.IoC.Interfaces;
using NUnit.Framework;

namespace CoreEx.Database.Persistence.Tests
{
    public abstract class BaseFixture
    {
        protected IServiceContainer _serviceContainer;

        [SetUp]
        public virtual void Setup()
        {
            _serviceContainer = ServiceLocator.Container;
        }

        [TearDown]
        public virtual void TearDown()
        {
            _serviceContainer = null;
        }
        [TestFixtureSetUp]
        public virtual void FixtureSetup()
        {
        }
        [TestFixtureTearDown]
        public virtual void FixtureTearDown()
        {
        }
    }
}
